package Year2021.month10.Day21;

public class Circular {
    public static double p;//p为圆周率；
    public double r;//r为圆的半径；
    public double area;//圆的面积；
    public double perimeter;//圆的周长；

    public void theMeasureOfArea(double r){
        area=p*r*r;
        System.out.println("圆的面积为"+area);
    }

    public void WorkPerimeter(double r){
        perimeter=2*p*r;
        System.out.println("圆的周长为"+perimeter);
    }



}
